package com.triones.yjj.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.triones.yjj.entity.RefundTradeDO;
import com.triones.yjj.entity.vo.RefundListVO;
import com.triones.yjj.entity.vo.RefundTradeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 退款交易 mapper 接口
 *
 * @Author: triones
 */
public interface RefundTradeMapper extends BaseMapperPlus<RefundTradeMapper, RefundTradeDO, RefundTradeVO> {

    /**
     * 退款列表
     * @param id
     * @return
     */
    List<RefundTradeVO> refundList(@Param("activityId") Long id);

    /**
     * 活动退款列表
     * @param build
     * @param wrapper
     * @return
     */
    Page<RefundListVO> refundPageList(@Param("page") Page<Object> build,@Param(Constants.WRAPPER) QueryWrapper<RefundTradeDO> wrapper);
}
